package com.scsj.supermarket.view.activity.ordermodel;

import android.app.AlertDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.scsj.supermarket.R;
import com.scsj.supermarket.view.activity.baseactivitymodel.BaseActivity;

/**
 * 退款进度
 */
public class RufundActivity extends BaseActivity implements View.OnClickListener {

    private String[] strings = new String[]{"fsdafdas", "fasfa", "fasdfasf", "fasfdafa"};
    private LinearLayout numberpicker_ll;
    private RelativeLayout rufund_rl;
    private TextView cancel_tv;
    private TextView sure_tv;
    private AlertDialog dlg;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_rufund);
        initToolbar();
        setToolbarTitle("退款进度");
        hasBack(true);
    }

    @Override
    protected void initView() {
        rufund_rl = findViewById(R.id.rufund_rl);
        cancel_tv = findViewById(R.id.cancel_tv);
        sure_tv = findViewById(R.id.sure_tv);
    }

    @Override
    protected void initListener() {
        rufund_rl.setOnClickListener(this);
    }

    @Override
    protected void initData() {
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.rufund_rl:

//                dlg = new AlertDialog.Builder(RufundActivity.this).create();
//
//                View localView = LayoutInflater.from(this).inflate(R.layout.rufund_reason_bottom_layout, null);
//
//                NumberPickerView picker = localView.findViewById(R.id.picker);
//                picker.refreshByNewDisplayedValues(strings);
//                localView.setAnimation(AnimationUtils.loadAnimation(RufundActivity.this, R.anim.actionsheet_dialog_in));
//                Window localWindow = dlg.getWindow();
//                WindowManager.LayoutParams attributes = localWindow.getAttributes();
//                attributes.width = WindowManager.LayoutParams.MATCH_PARENT;
//                attributes.height = WindowManager.LayoutParams.WRAP_CONTENT;
//                localWindow.setAttributes(attributes);
//                localWindow.setGravity(Gravity.BOTTOM);
//                dlg.show();
//                localWindow.setContentView(localView);

                break;
            case R.id.sure_tv:
                break;
            case R.id.cancel_tv:

                break;

        }
    }
}
